
/* ==========================================================================
   RDI APPLICATION / ADMISSIONS PAGE
   Reflections Development Institute
   ========================================================================== */

/* ---------- Page / Application Container ---------- */

.application-page {
    background: #f5f5f5;
    padding: 70px 20px 100px;
}

.application {
    width: min(1100px, 100%);
    height: auto;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(26, 31, 113, 0.10);
    overflow: hidden;
}

/* ---------- Page Introduction ---------- */

.ctext {
    width: min(1100px, 100%);
    margin: 0 auto 35px;
    padding: 0;
}

.ctext h2 {
    margin: 0 0 12px;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    color: #1A1F71;
}

.ctext h2::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin-top: 16px;
    background: #FCA311;
    border-radius: 10px;
}

/* ---------- Form ---------- */

.form {
    width: auto;
    height: auto;
    padding: 45px 55px 55px;
    font-family: "Lora", serif;
}

.form h6 {
    margin: 0 0 9px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #1A1F71;
}

.form p {
    margin: 0 0 12px;
    font-family: "Lora", serif;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* ---------- Inputs / Selects ---------- */

.form input:not([type="checkbox"]):not([type="file"]),
.form select,
.form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #d7d9e2;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: "Lora", serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form select {
    appearance: auto;
    cursor: pointer;
}

.form input:not([type="checkbox"]):not([type="file"]):focus,
.form select:focus,
.form textarea:focus {
    border-color: #1D9BF0;
    box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.12);
}

.form input::placeholder,
.form textarea::placeholder {
    color: #999999;
}

/* ---------- Two-column fields ---------- */

.name-container,
.City-state,
.code-country {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.name input,
.City-state input,
.code-country input {
    width: 100%;
}

.l-name,
.state,
.country {
    margin-left: 0;
}

/* ---------- Full-width field groups ---------- */

.con-details input,
.ad-line input,
.idenification input {
    width: 100%;
}

/* ---------- File Upload ---------- */

.doc {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px dashed #b8bccb;
    border-radius: 7px;
    background: #f8f9fa;
    cursor: pointer;
}

.form input[type="file"] {
    width: 100%;
    margin: 0;
    padding: 5px 0;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #555;
}

/* ---------- Checkboxes ---------- */

.form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    accent-color: #1A1F71;
    vertical-align: middle;
    cursor: pointer;
}

.form label {
    color: #333;
}

/* ---------- POPIA / Consent Area ---------- */

.form a {
    color: #1A1F71;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-decoration: underline;
}

.form a:hover {
    color: #FCA311;
}

/* ---------- Submit Button ---------- */

.submit {
    width: auto;
    min-width: 160px;
    height: auto;
    margin-top: 18px;
    padding: 13px 28px;
    border: none;
    border-radius: 6px;
    background: #FCA311;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease,
                box-shadow 0.2s ease;
}

.submit:hover {
    background: #e89500;
    box-shadow: 0 6px 18px rgba(252, 163, 17, 0.25);
    transform: translateY(-1px);
}

.submit:active {
    transform: translateY(0);
}

/* ---------- Existing Home Button ---------- */

.home-button {
    margin-top: 1em;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 4px;
}

.home-button button i {
    margin-left: 0.5em;
}

.home-button button:hover {
    background-color: #333;
}

/* ---------- Terms / POPIA Modal ---------- */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 30px 20px;
    box-sizing: border-box;
    background: rgba(10, 14, 35, 0.70);
}

.modal-content {
    position: relative;
    width: min(760px, 100%);
    box-sizing: border-box;
    margin: 7vh auto;
    padding: 38px 42px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    font-family: "Lora", serif;
}

.modal-content h2,
.modal-content h3 {
    margin-top: 0;
    color: #1A1F71;
    font-family: "Montserrat", sans-serif;
}

.close {
    float: right;
    margin-left: 20px;
    color: #777;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: #1A1F71;
    text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {

    .application-page {
        padding: 50px 18px 70px;
    }

    .form {
        padding: 35px 30px 40px;
    }

    .name-container,
    .City-state,
    .code-country {
        gap: 14px;
    }
}

@media (max-width: 650px) {

    .application-page {
        padding: 35px 12px 55px;
    }

    .ctext {
        margin-bottom: 25px;
    }

    .ctext h2 {
        font-size: 36px;
    }

    .application {
        border-radius: 10px;
    }

    .form {
        padding: 28px 20px 35px;
    }

    .name-container,
    .City-state,
    .code-country {
        display: block;
    }

    .name input,
    .City-state input,
    .code-country input {
        width: 100%;
    }

    .l-name,
    .state,
    .country {
        margin-left: 0;
    }

    .modal {
        padding: 15px;
    }

    .modal-content {
        margin: 4vh auto;
        padding: 28px 22px;
    }
}

@media (max-width: 420px) {

    .application-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .ctext h2 {
        font-size: 31px;
    }

    .form {
        padding: 24px 16px 30px;
    }

    .form input:not([type="checkbox"]):not([type="file"]),
    .form select,
    .form textarea {
        min-height: 44px;
        font-size: 13px;
    }

    .submit {
        width: 100%;
    }
}
/* Styling snippet for modal scrollability and clean layout */
.modal-content {
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 8px;
}

.modal-scroll-body {
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-scroll-body h3 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: #1a365d;
}

.modal-scroll-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.modal-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-close-modal {
    padding: 10px 20px;
    background-color: #1a365d;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}